/**     
 * @{#} Command.java Create on 2011-7-21 下午09:50:38     
 *     
 * Copyright (c) 2011 by xiaofeng.zhouxf     
 */
package com.sefer.memcached.command;

import java.util.List;

import com.sefer.memcached.connect.Connector;

/**
 * The global interface for memcached Command.All Command should implement this
 * interface.
 * 
 * @author <a href="mailto:xiaofeng.zhouxf83@gmail.com">xiaofeng.zhouxf</a>
 * @version 1.0
 */
public interface Command {
	String generateCommand();

	String getKey();

	String getMessage();

	void setConnector(Connector connector);

	void setKey(String key);

	void setMessage(String message);

	String getName();

	boolean validateResult(String result);

	String getResult();

	void setResult(String result);
}
